package com.ruoyi.hospital.domain.order;

import com.ruoyi.common.core.domain.NewBaseEntity;
import com.ruoyi.hospital.domain.shop.PharmacyDrugSku;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单商品对象 shop_orders_product
 * 
 * @author wendao
 * @date 2025-05-28
 */
public class ShopOrdersProduct extends NewBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 药品id */
    @Excel(name = "药品id")
    private Integer drugId;
    private String drugName;
    private String mainPic;

    private Integer skuId;
    private BigDecimal drugPriceTotal; //总售价

    /** 订单id */
    @Excel(name = "订单id")
    private Integer orderId;

    /** 数量 */
    @Excel(name = "数量")
    private Integer drugNum;


    private Integer storeId;
    private String storeName;
    private String storeLogo;

    private List<ShopOrdersProduct> shopOrdersProductList;
    private PharmacyDrugSku pharmacyDrugSku;

    public PharmacyDrugSku getPharmacyDrugSku() {
        return pharmacyDrugSku;
    }

    public void setPharmacyDrugSku(PharmacyDrugSku pharmacyDrugSku) {
        this.pharmacyDrugSku = pharmacyDrugSku;
    }

    public List<ShopOrdersProduct> getShopOrdersProductList() {
        return shopOrdersProductList;
    }

    public void setShopOrdersProductList(List<ShopOrdersProduct> shopOrdersProductList) {
        this.shopOrdersProductList = shopOrdersProductList;
    }

    public String getStoreLogo() {
        return storeLogo;
    }

    public void setStoreLogo(String storeLogo) {
        this.storeLogo = storeLogo;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getMainPic() {
        return mainPic;
    }

    public void setMainPic(String mainPic) {
        this.mainPic = mainPic;
    }

    public BigDecimal getDrugPriceTotal() {
        return drugPriceTotal;
    }

    public void setDrugPriceTotal(BigDecimal drugPriceTotal) {
        this.drugPriceTotal = drugPriceTotal;
    }

    public Integer getDrugId() {
        return drugId;
    }

    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }

    public Integer getDrugNum() {
        return drugNum;
    }

    public void setDrugNum(Integer drugNum) {
        this.drugNum = drugNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("drugId", getDrugId())
            .append("orderId", getOrderId())
            .append("drugNum", getDrugNum())
            .toString();
    }
}
